package com.zdp.oauth.filter;

import com.zdp.oauth.entity.LoginUserInfo;

/**
 * @author sesshomaru
 * @date 2022/5/24
 */
public class AccessContext {

    private static final ThreadLocal<LoginUserInfo> loginUserInfo = new ThreadLocal<>();

    public static LoginUserInfo getLoginUserInfo() {
        return loginUserInfo.get();
    }

    public static void setLoginUserInfo(LoginUserInfo loginUserInfo_) {
        loginUserInfo.set(loginUserInfo_);
    }

    public static void clear() {
        loginUserInfo.remove();
    }

}
